package com.comtop.topcloud.device.model;

import com.comtop.topcloud.device.model.mysql.EnergySystemAlarmConditions;
import com.comtop.topcloud.device.model.mysql.EnergySystemAlarmLibrary;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class AlarmConfig  extends EnergySystemAlarmLibrary {

    private List<EnergySystemAlarmConditions>  energySystemAlarmConditions;

    public  boolean isNull(){
        return StringUtils.isEmpty(this.getId());
    }

}
